package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.properties.model.domain.Serve;
import com.jzo2o.foundations.properties.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.properties.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.properties.model.dto.response.ServeResDTO;

import java.math.BigDecimal;
import java.util.List;

public interface Iservice extends IService<Serve> {
    PageResult<ServeResDTO> pageResult(ServePageQueryReqDTO servePageQueryReqDTO);

    void addAll(List<ServeUpsertReqDTO> list);

    void regionPriceUpdate(Long id, BigDecimal price);

    void onSale(Long id);

    void offSale(Long id);

    void dletedByid(Long id);

    void onHot(long id);

    void offHot(long id);
}
